package com.cn.Api.intel;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Author: wuyanzu
 * @Date: 2018/7/31
 */
@Component
@FeignClient(value = "spring-cloud-shop/shop")
public interface WeChatFeignClient {

    @RequestMapping(value = "/order/payCallback")
    void payCallback(@RequestBody Map<String, Object> map);


    @RequestMapping(value = "/order/exeit")
    boolean getOrder(@RequestParam(name = "orderId") Long orderId);
}
